package com.topteam.core

import org.apache.deltaspike.data.api.EntityManagerResolver
import javax.persistence.EntityManager
import javax.inject.Inject
import javax.enterprise.inject.Default

/**
 * Created by thinkpad on 14-2-16.
 */
class DefaultEntityManagerResolver extends EntityManagerResolver {
  @Inject
  @Default var em: EntityManager = _

  @Override
  def resolveEntityManager(): EntityManager = {
    em
  }
}
